package com.vcit.framework.utils;

import com.vcit.common.utils.ServletUtils;

import javax.servlet.http.HttpServletRequest;

/**
 * 身份识别
 */
public class IdentityRecognitionUtils {

    public static Boolean isStu() {
        HttpServletRequest request = ServletUtils.getRequest();
        String userType = request.getHeader("User-Type");
        return "stu".equals(userType);
    }

    public static Boolean isTea() {
        HttpServletRequest request = ServletUtils.getRequest();
        String userType = request.getHeader("User-Type");
        return "tea".equals(userType);
    }
}
